﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Admin" Object="Admin" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="admin_edit" data-title="编辑管理员" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString['ID']%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">管理员列表</a> → <b class="<%=ContentLang%>Font"><%=Admin[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table margin2">
				<tr>
					<th width="120">角色：</th>
					<td>
						<ali:List Object="Role">
							<select name="RoleID" data-class="<%=ContentLang%>Font" data-ali-widget="combo">
								<ali:Record>
									<%If Guid.Equals(Admin[RoleID], ID)%>
										<option value="<%=ID%>" selected><%=Name%></option>
									<%Else%>
										<option value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
								</ali:Record>
							</select>
						</ali:List>
					</td>
				</tr>
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=Admin[Name]%>" maxlength="50" class="ali-input CHSFont"></td>
				</tr>
				<tr>
					<th>密码：</th>
					<td><input type="password" name="Password" value="" maxlength="50" class="ali-input CHSFont">不修改，则留空</td>
				</tr>
				<tr>
					<th>电子邮件：</th>
					<td><input type="text" name="Email" value="<%=Admin[Email]%>" maxlength="50" class="ali-input CHSFont"></td>
				</tr>
				<tr>
					<th>真实姓名：</th>
					<td><input type="text" name="RealName" value="<%=Admin[RealName]%>" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>QQ：</th>
					<td><input type="text" name="QQ" value="<%=Admin[QQ]%>" maxlength="20" class="ali-input CHSFont"></td>
				</tr>
				<tr>
					<th>权限限于自己：</th>
					<td>
						<%If Convert.ToBoolean(Admin[HasSelfLimitation])%>
							<label><input type="radio" name="HasSelfLimitation" value="true" checked>是</label>
							<label><input type="radio" name="HasSelfLimitation" value="false">否</label>
						<%Else%>
							<label><input type="radio" name="HasSelfLimitation" value="true">是</label>
							<label><input type="radio" name="HasSelfLimitation" value="false" checked>否</label>
						<%EndIf%>
					</td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>